liwe.form.instance.prototype.dgrid = function ( vars )
{
	if ( typeof DGrid == 'undefined' ) 
	{
		alert ( _ ( "os3_form", "You *MUST* include OS3DGrid" ) );		
		return null;
	}

	var name = vars [ 'name' ];

	this._start_field ( vars );

	vars [ 'id' ] = this.name + "@" + this._get_name ( vars );

	this.html += '<div id="' + vars [ 'id' ] + '"></div>';

	this._newline ( vars );

	var dg = new DGrid ( vars [ 'name' ] );

	dg._dest_div = vars [ 'id' ];

	return dg;
};
